package com.hpjpw.ido.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务记录对象 ido_task_record
 * 
 * @author hpj
 * @date 2021-01-02
 */
@ApiModel("TaskRecordDomain")
public class TaskRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @Excel(name = "ID")
    @ApiModelProperty("ID")
    private String id;

    /** 任务ID */
    @Excel(name = "任务ID")
    @ApiModelProperty("任务ID")
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @ApiModelProperty("任务名称")
    private String taskName;

    /** 学生ID */
    @Excel(name = "学生ID")
    @ApiModelProperty("学生ID")
    private Long studentId;

    /** 学生昵称 */
    @Excel(name = "学生昵称")
    @ApiModelProperty("学生昵称")
    private String studentNickName;

    /** 学生头像 */
    @Excel(name = "学生头像")
    @ApiModelProperty("学生头像")
    private String studentAvatar;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private Long state;

    /** 自我描述 */
    @ApiModelProperty("状态")
    private String describe;

    /** 状态更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "状态更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("状态更新时间")
    private Date time;

    /** 所获得的星星的数目 */
    @Excel(name = "所获得的星星的数目")
    @ApiModelProperty("所获得的星星的数目")
    private Long star;

    /** 任务图片URL */
    @ApiModelProperty("所获得的星星的数目")
    private String picture;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDescribe(String describe) 
    {
        this.describe = describe;
    }

    public String getDescribe() 
    {
        return describe;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setStar(Long star) 
    {
        this.star = star;
    }

    public Long getStar() 
    {
        return star;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }

    public String getTaskName() {
        return taskName;
    }

    public void setTaskName(String taskName) {
        this.taskName = taskName;
    }

    public String getStudentNickName() {
        return studentNickName;
    }

    public void setStudentNickName(String studentNickName) {
        this.studentNickName = studentNickName;
    }

    public String getStudentAvatar() {
        return studentAvatar;
    }

    public void setStudentAvatar(String studentAvatar) {
        this.studentAvatar = studentAvatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("studentId", getStudentId())
            .append("studentNickName", getStudentNickName())
            .append("studentAvatar", getStudentAvatar())
            .append("state", getState())
            .append("describe", getDescribe())
            .append("time", getTime())
            .append("star", getStar())
            .append("picture", getPicture())
            .toString();
    }
}
